home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / ucthesis / uct10.doc < prev    next >
Text File  |  1994-12-09  |  17KB  |  421 lines

  1. % UCTHESIS DOCUMENT STYLE -- Released 10 Feb 93.
  2. %    for LaTeX version 2.09
  3.  
  4. %  ****************************************
  5. %  *               FONTS                  *
  6. %  ****************************************
  7. %
  8.  
  9. \lineskip 1pt            % \lineskip is 1pt for all font sizes.
  10. \normallineskip 1pt
  11. \def\baselinestretch{1.37}
  12.  
  13. % Each size-changing command \SIZE executes the command
  14. %        \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
  15. % where:
  16. %   BASELINESKIP = Normal value of \baselineskip for that size. (Actual 
  17. %                  value will be \baselinestretch * BASELINESKIP.)
  18. %
  19. %  \FONTSIZE     = Name of font-size command.  The currently available
  20. %                  (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
  21. %                  \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
  22. %                  \xivpt, \xviipt, \xxpt, \xxvpt.
  23. %  \@FONTSIZE    = The same as the font-size command except with an
  24. %                  '@' in front---e.g., if \FONTSIZE = \xivpt then
  25. %                  \@FONTSIZE = \@xivpt.
  26. %
  27. % For reasons of efficiency that needn't concern the designer, the
  28. % document style defines \@normalsize instead of \normalsize .  This
  29. % is done only for \normalsize, not for any other size-changing
  30. % commands.
  31.  
  32. \def\@normalsize{\@setsize\normalsize{12pt}\xpt\@xpt
  33. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  34. \belowdisplayskip \abovedisplayskip
  35. \abovedisplayshortskip  \z@ plus3\p@   
  36. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  37. \let\@listi\@listI}   % Setting of \@listi added 9 Jun 87
  38.  
  39. \def\small{\@setsize\small{11pt}\ixpt\@ixpt
  40. \abovedisplayskip 8.5\p@ plus3\p@ minus4\p@
  41. \belowdisplayskip \abovedisplayskip
  42. \abovedisplayshortskip \z@ plus2\p@
  43. \belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
  44. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  45. \topsep 4\p@ plus2\p@ minus2\p@\parsep 2\p@ plus\p@ minus\p@
  46. \itemsep \parsep}}
  47.  
  48. \def\footnotesize{\@setsize\footnotesize{9.5pt}\viiipt\@viiipt
  49. \abovedisplayskip 6\p@ plus2\p@ minus4\p@
  50. \belowdisplayskip \abovedisplayskip
  51. \abovedisplayshortskip \z@ plus\p@
  52. \belowdisplayshortskip 3\p@ plus\p@ minus2\p@
  53. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  54. \topsep 3\p@ plus\p@ minus\p@\parsep 2\p@ plus\p@ minus\p@
  55. \itemsep \parsep}}
  56.  
  57. \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
  58. \def\tiny{\@setsize\tiny{6pt}\vpt\@vpt}
  59. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  60. \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
  61. \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
  62. \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
  63. \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
  64.  
  65. \normalsize  % Choose the normalsize font.
  66.  
  67.  
  68. %  ****************************************
  69. %  *            PAGE LAYOUT               *
  70. %  ****************************************
  71. %
  72. % All margin dimensions measured from a point one inch from top and side
  73. % of page.  
  74.  
  75. %% UCTHESIS style is not intended to be used two-sided because the
  76. %% University of California style requirements explicitly specify 
  77. %% single-sided printing.   So the two-sided settings are meaningless.
  78.  
  79. % SIDE MARGINS:
  80. \if@twoside               % Values for two-sided printing:
  81.    \oddsidemargin 0.5in   %   Left margin on odd-numbered pages.
  82.    \evensidemargin 0.0in  %   Left margin on even-numbered pages.
  83.    \marginparwidth 0pt    %   Width of marginal notes.
  84. \else                     % Values for one-sided printing:
  85.    \oddsidemargin 0.5in   %   Note that \oddsidemargin = \evensidemargin
  86.    \evensidemargin 0.5in
  87.    \marginparwidth 0pt
  88. \fi
  89. \marginparsep 11pt        % Horizontal space between outer margin and 
  90.                           % marginal note
  91.  
  92.  
  93. % VERTICAL SPACING:        
  94.                          % Top of page:
  95. \topmargin 0.0in         %    Nominal distance from top of page to top
  96.                          %    of box containing running head.
  97. \headheight 12pt         %    Height of box containing running head.
  98. \headsep 25pt            %    Space between running head and text.
  99. \topskip = 10pt          %    '\baselineskip' for first line of page.
  100.                          % Bottom of page:
  101. \footskip 30pt           %    Distance from baseline of box containing
  102.                          %    foot to baseline of last line of text.
  103.  
  104.  
  105. % DIMENSION OF TEXT:
  106. % 24 Jun 86: changed to explicitly compute \textheight to avoid
  107. % roundoff.  The value of the multiplier was calculated as the floor
  108. % of the old \textheight minus \topskip, divided by \baselineskip for
  109. % \normalsize.  The old value of \textheight was 528pt.  \textheight
  110. % is the height of text (including footnotes and figures, excluding
  111. % running head and foot).
  112.  
  113. \textheight = 37\baselineskip
  114. \advance\textheight by \topskip
  115. \textwidth 6.0truein     % Width of text line.
  116.                          % For two-column mode: 
  117. \columnsep 10pt          %    Space between columns 
  118. \columnseprule 0pt       %    Width of rule between columns.
  119.  
  120. % A \raggedbottom command causes 'ragged bottom' pages: pages set to
  121. % natural height instead of being stretched to exactly \textheight.
  122.  
  123. % FOOTNOTES:
  124.  
  125. \footnotesep 6.65pt   % Height of strut placed at the beginning of every
  126.                       % footnote = height of normal \footnotesize strut,
  127.                       % so no extra space between footnotes.
  128.  
  129. \skip\footins 9pt plus 4pt minus 2pt  % Space between last line of text
  130.                                       % and top of first footnote.
  131.  
  132. % FLOATS: (a float is something like a figure or table)
  133. %
  134. %  FOR FLOATS ON A TEXT PAGE:
  135. %
  136. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  137. \floatsep 12pt plus 2pt minus 2pt        % Space between adjacent floats
  138.                                          % moved to top or bottom of
  139.                                          % text page.
  140. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and
  141.                                          % floats at top or bottom of
  142.                                          % page.
  143. \intextsep 12pt plus 2pt minus 2pt       % Space between in-text figures
  144.                                          % and text.
  145. \@maxsep 20pt                            % The maximum of \floatsep, 
  146.                                          % \textfloatsep and \intextsep
  147.                                          % (minus the stretch and
  148.                                          % shrink).
  149. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  150. \dblfloatsep 12pt plus 2pt minus 2pt     % Same as \floatsep for
  151.                                          % double-column figures in
  152.                                          % two-column mode.
  153. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for
  154.                                          % double-column  floats.
  155. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep
  156.                                          % and \dbltexfloatsep.
  157.  
  158. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  159. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  160. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must
  161.                          % be 0pt plus ...)
  162. \@fpsep 8pt plus 2fil    % Space between floats on float page/column.
  163. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must
  164.                          % be 0pt plus ... )
  165.  
  166. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  167. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt
  168.                          % plus ...)
  169. \@dblfpsep 8pt plus 2fil % Space between floats on float page.
  170. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
  171.                          % 0pt plus ... )
  172. % MARGINAL NOTES:
  173. %
  174. \marginparpush 5pt       % Minimum vertical separation between two
  175.                          % marginal notes.
  176.  
  177.  
  178. %  ****************************************
  179. %  *           PARAGRAPHING               *
  180. %  ****************************************
  181. %
  182. \parskip 0pt plus 1pt              % Extra vertical space between
  183.                                    % paragraphs.
  184. \parindent 4em                     % Width of paragraph indentation.
  185. %\topsep 8pt plus 2pt minus 4pt    % Extra vertical space, in addition
  186.                                    % to \parskip, added above and below
  187.                                    % list and paragraphing environments.
  188. \partopsep 2pt plus 1pt minus 1pt  % Extra vertical space, in addition
  189.                                    % to \parskip and \topsep, added when
  190.                                    % user leaves blank line before
  191.                                    % environment.
  192. %\itemsep 4pt plus 2pt minus 1pt   % Extra vertical space, in addition
  193.                                    % to \parskip, added between list
  194.                                    % items.
  195. % See \@listI for values of \topsep and \itemsep
  196. % (Change made 9 Jun 87)
  197.  
  198. % The following page-breaking penalties are defined
  199.  
  200. \@lowpenalty   51      % Produced by \nopagebreak[1] or \nolinebreak[1]
  201. \@medpenalty  151      % Produced by \nopagebreak[2] or \nolinebreak[2]
  202. \@highpenalty 301      % Produced by \nopagebreak[3] or \nolinebreak[3]
  203.  
  204. \@beginparpenalty -\@lowpenalty    % Before a list or paragraph
  205.                                    % environment.
  206. \@endparpenalty   -\@lowpenalty    % After a list or paragraph
  207.                                    % environment.
  208. \@itempenalty     -\@lowpenalty    % Between list items.
  209.  
  210. % \clubpenalty         % 'Club line'  at bottom of page.
  211. % \widowpenalty        % 'Widow line' at top of page.
  212. % \displaywidowpenalty % Math display widow line.
  213. % \predisplaypenalty   % Breaking before a math display.
  214. % \postdisplaypenalty  % Breaking after a math display.
  215. % \interlinepenalty    % Breaking at a line within a paragraph.
  216. % \brokenpenalty       % Breaking after a hyphenated line.
  217.  
  218.  
  219. %    ****************************************
  220. %    *        CHAPTERS AND SECTIONS         *
  221. %    ****************************************
  222. %
  223. %
  224.  
  225. % Definition of \part moved to report.doc  on 19 Jan 88
  226.  
  227. % \@makechapterhead {TEXT} : Makes the heading for the \chapter command.
  228. %
  229.  
  230. \def\@makechapterhead#1{%           % Heading for \chapter command
  231.   \vspace*{50\p@}%                  % Space at top of text page.
  232.   {\parindent \z@\raggedright 
  233.     \ifnum \c@secnumdepth >\m@ne    % IF secnumdepth > -1 THEN
  234.      \huge\bf \@chapapp{} \thechapter % Print '\chaptername' and number.
  235.     \par 
  236.     \vskip 20\p@ \fi                % Space between number and title.
  237.     \Huge \bf                       % Title.
  238.     #1\par 
  239.     \nobreak                        % TeX penalty to prevent page break.
  240.     \vskip 40\p@                    % Space between title and text.
  241.   }}
  242.  
  243. % \@makeschapterhead {TEXT} : Makes the heading for the \chapter*
  244. % command.
  245. %
  246.  
  247. \def\@makeschapterhead#1{%          % Heading for \chapter* command
  248.   \vspace*{50\p@}%                  % Space at top of page.
  249.   {\parindent \z@ \raggedright 
  250.     \Huge \bf                       % Title.
  251.     #1\par 
  252.     \nobreak                        % TeX penalty to prevent page break.
  253.     \vskip 40\p@                    % Space between title and text.
  254.   }}
  255.  
  256. % \secdef{UNSTARCMDS}{STARCMDS} :
  257. %    When defining a \chapter or \section command without using
  258. %    \@startsection, you can use \secdef as follows:
  259. %       \def\chapter { ... \secdef \CMDA \CMDB }
  260. %       \def\CMDA    [#1]#2{ ... }  % Command to define
  261. %                                   % \chapter[...]{...}
  262. %       \def\CMDB    #1{ ... }      % Command to define
  263. %                                   % \chapter*{...}
  264.  
  265. \def\chapter{\clearpage      % Starts new page.
  266.    \thispagestyle{plain}%    % Page style of chapter page is 'plain'
  267.    \global\@topnum\z@        % Prevents figures from going
  268.                              % at top of page.
  269.    \@afterindenttrue         % Suppresses indent in first paragraph.
  270.    \secdef\@chapter\@schapter}   % Change to \@afterindentfase for no indent.
  271.  
  272. \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
  273.         \refstepcounter{chapter}%
  274.         \typeout{\@chapapp\space\thechapter.}%
  275.         \addcontentsline{toc}{chapter}{\protect
  276.         \numberline{\thechapter}#1}\else
  277.       \addcontentsline{toc}{chapter}{#1}\fi
  278.    \chaptermark{#1}%
  279.    \addtocontents{lof}%
  280.        {\protect\addvspace{10\p@}} % Adds between-chapter space
  281.    \addtocontents{lot}%
  282.        {\protect\addvspace{10\p@}} % to lists of figs & tables.
  283.    \if@twocolumn                   % Tests for two-column mode.  
  284.            \@topnewpage[\@makechapterhead{#2}]%
  285.      \else \@makechapterhead{#2}%
  286.            \@afterheading          % Routine called after chapter and
  287.      \fi}                          % section heading.
  288.  
  289. \def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]%
  290.         \else \@makeschapterhead{#1}%
  291.               \@afterheading\fi}
  292.  
  293. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
  294. %            optional * [ALTHEADING]{HEADING}
  295. %    Generic command to start a section.  
  296. %    NAME       : e.g., 'subsection'
  297. %    LEVEL      : a number, denoting depth of section -- e.g.,
  298. %                 chapter=1, section = 2, etc.  A section number will be
  299. %                 printed if and only if LEVEL < or = the value of the
  300. %                 secnumdepth counter.
  301. %    INDENT     : Indentation of heading from left margin
  302. %    BEFORESKIP : Absolute value = skip to leave above the heading.  
  303. %                 If negative, then paragraph indent of text following 
  304. %                 heading is suppressed.
  305. %    AFTERSKIP  : if positive, then skip to leave below heading,
  306. %                       else - skip to leave to right of run-in heading.
  307. %    STYLE      : commands to set style
  308. %  If '*' missing, then increments the counter.  If it is present, then
  309. %  there should be no [ALTHEADING] argument.  A sectioning command
  310. %  is normally defined to \@startsection + its first six arguments.
  311.  
  312. \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus-1ex minus
  313.     -.2ex}{2.3ex plus.2ex}{\reset@font\Large\bf}}
  314. \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus-1ex
  315.     minus-.2ex}{1.5ex plus.2ex}{\reset@font\large\bf}}
  316. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
  317.     -1ex minus-.2ex}{1.5ex plus.2ex}{\reset@font\normalsize\bf}}
  318. \def\paragraph{\@startsection
  319.     {paragraph}{4}{\z@}{3.25ex plus1ex minus.2ex}{-1em}{\reset@font
  320.     \normalsize \bf}}
  321. \def\subparagraph{\@startsection
  322.      {subparagraph}{4}{\parindent}{3.25ex plus1ex minus
  323.      .2ex}{-1em}{\reset@font\normalsize\bf}}
  324.  
  325.  
  326. % Default initializations of \...mark commands.  (See below for their
  327. % us in defining page styles.
  328. %
  329.  
  330. \def\chaptermark#1{}
  331. % \def\sectionmark#1{}           % Preloaded definitions
  332. % \def\subsectionmark#1{}
  333. % \def\subsubsectionmark#1{}
  334. % \def\paragraphmark#1{}
  335. % \def\subparagraphmark#1{}
  336.  
  337. % The value of the counter secnumdepth gives the depth of the
  338. % highest-level sectioning command that is to produce section numbers.
  339. %
  340.  
  341. \setcounter{secnumdepth}{2}
  342.  
  343. % APPENDIX
  344. %
  345. % The \appendix command must do the following:
  346. %    -- reset the chapter counter to zero
  347. %    -- set \@chapapp to Appendix (for messages)
  348. %    -- redefine the chapter counter to produce appendix numbers
  349. %    -- reset the section counter to zero
  350. %    -- redefine the \chapter command if appendix titles and headings
  351. %       are to look different from chapter titles and headings.
  352.  
  353. \def\appendix{\par
  354.   \setcounter{chapter}{0}%
  355.   \setcounter{section}{0}%
  356.   \def\@chapapp{\appendixname}%
  357.   \def\thechapter{\Alph{chapter}}}
  358.  
  359.  
  360. %    ****************************************
  361. %    *                LISTS                 *
  362. %    ****************************************
  363. %
  364.  
  365. % The following commands are used to set the default values for the list
  366. % environment's parameters. See the LaTeX manual for an explanation of
  367. % the meanings of the parameters.  Defaults for the list environment are
  368. % set as follows.  First, \rightmargin, \listparindent and \itemindent
  369. % are set to 0pt.  Then, for a Kth level list, the command \@listK is
  370. % called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
  371. % called for a third-level list.)  By convention, \@listK should set
  372. % \leftmargin to \leftmarginK.
  373. %
  374. % For efficiency, level-one list's values are defined at top level, and
  375. % \@listi is defined to set only \leftmargin.
  376.  
  377. \leftmargini 25pt
  378. \leftmarginii 22pt     % > \labelsep + width of '(m)'
  379. \leftmarginiii 18.7pt  % > \labelsep + width of 'vii.'
  380. \leftmarginiv 17pt     % > \labelsep + width of 'M.'
  381. \leftmarginv 10pt
  382. \leftmarginvi 10pt
  383.  
  384. \leftmargin\leftmargini
  385. \labelsep 5pt
  386. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  387. %\parsep 4pt plus 2pt minus 1pt (Removed 9 Jun 87)
  388.  
  389. % \@listI defines top level and \@listi values of
  390. % \leftmargin, \topsep, \parsep, and \itemsep
  391. % (Added 9 Jun 87)
  392. \def\@listI{\leftmargin\leftmargini \parsep 4\p@ plus2\p@ minus\p@%
  393. \topsep 8\p@ plus2\p@ minus4\p@
  394. \itemsep 4\p@ plus2\p@ minus\p@}
  395.  
  396. \let\@listi\@listI
  397. \@listi 
  398.  
  399. \def\@listii{\leftmargin\leftmarginii
  400.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  401.    \topsep 4\p@ plus2\p@ minus\p@
  402.    \parsep 2\p@ plus\p@ minus\p@
  403.    \itemsep \parsep}
  404.  
  405. \def\@listiii{\leftmargin\leftmarginiii
  406.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  407.     \topsep 2\p@ plus\p@ minus\p@ 
  408.     \parsep \z@ \partopsep\p@ plus\z@ minus\p@
  409.     \itemsep \topsep}
  410.  
  411. \def\@listiv{\leftmargin\leftmarginiv
  412.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  413.  
  414. \def\@listv{\leftmargin\leftmarginv
  415.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  416.  
  417. \def\@listvi{\leftmargin\leftmarginvi
  418.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  419.  
  420. \endinput
  421.